import type { TableColumn } from '@/framework/components/core/super-table';

export type TableListItem = {
  name;
  createName;
  createTime;
  specimenType;
  commonCfgEntityList;
  id;
};
export type TableColumnItem = TableColumn<TableListItem>;

export const baseColumns: TableColumnItem[] = [
  {
    type: 'seq',
    title: '序号',
    width: 60,
  },
  {
    title: '模板名称',
    field: 'name',
  },
  {
    title: '样本类型',
    field: 'specimenType',
    formatter: ({ cellValue }) => {
      return cellValue?.replaceAll('|', '、');
    },
  },
  {
    title: '创建人',
    field: 'createName',
  },

  {
    title: '创建时间',
    field: 'createTime',
    hideInSearch: true,
  },
];
